import { defineStore } from 'pinia'
import { ref } from 'vue'

export const useChannelStore = defineStore('channel', ()=>{
  // 1. 频道id
 const channelId = ref(0)

 // 2. 修改频道id的方法
 const changeChannelId = (id: number)=>{
  channelId.value = id
 }

  return {channelId, changeChannelId}
})